package logic.bean;

import com.ciko.code.annotations.Column;

import java.io.Serializable;


public class BookBean
        implements
        Serializable
{
	/** epub3电子书 */
	public static final int BOOK_TYPE_EPUB3 = 9; 
	/** 同步-离线 */
	public static final int NO_ONLINE = 0; 
	/** 同步-在线 */
	public static final int ONLINE = 1; 
	/** 不同步 */
	public static final int NO_SYNC = 0; 
	/** 同步*/
	public static final int SYNC = 1; 
	/** 删除*/
	public static final int DELETE = 2; 
	private static final long serialVersionUID = 7757810864895451576L;
	@Column(primaryKey = true)
	public int                id;
	public int                status;                                 //1本地书籍  2在线书籍 3 下载 4 推荐
	public long               book_id;
	public String             book_name;
	public int                book_type;                              //1=图文书籍 2=板式杂志 3=连载 4=漫画 5=有声 6=流式杂志 9=epub3
	public String             path;                                   //
	public String             author;
	public long               chapter_id; //目录里的index
	public int                word_index;
	public String             account;
	public String             create_time;
	public String             logo_url;
	public String             ncxUrl; //目录下载url
	public String             chapterName; 
	public long               server_id; //服务端的唯一id
	public long               server_chapterid; //服务端的章节id
	public int             	  isOnline;// 0|1:离线|在线
	public int             	  syncStatus;//0:未同步，1：同步,2:删除
	public long startTime;//阅读开始时间
	public long endTime;  //阅读结束时间
	
	public BookBean() {
		
	}
	
	public BookBean(int status, long bookid, String bookName, int booktType, long chapterId, String path, String author, String account, String createTime, String logoUrl) {
		this.status = status;
		this.book_id = bookid;
		this.book_name = bookName;
		this.book_type = booktType;
		this.chapter_id = chapterId;
		this.path = path;
		this.author = author;
		this.account = account;
		this.create_time = createTime;
		this.logo_url = logoUrl;
	}
	public BookBean(int status, long bookid, String bookName, int booktType, String account, String logoUrl,String ncxUrl) {
		this.status = status;
		this.book_id = bookid;
		this.book_name = bookName;
		this.book_type = booktType;
		this.account = account;
		this.logo_url = logoUrl;
		this.ncxUrl = ncxUrl;
	}
	
	public BookBean(long book_id, String book_name, String account, String create_time) {
	    super();
	    this.book_id = book_id;
	    this.book_name = book_name;
	    this.account = account;
	    this.create_time = create_time;
    }

	@Override
    public String toString() {
	    return "BookBean [id=" + id + ", status=" + status + ", book_id=" + book_id + ", book_name=" + book_name + ", book_type=" + book_type + ", path=" + path + ", author=" + author + ", chapter_id=" + chapter_id + ", word_index=" + word_index + ", account=" + account + ", create_time=" + create_time + ", logo_url=" + logo_url + ", ncxUrl=" + ncxUrl + ", chapterName=" + chapterName + ", server_id=" + server_id + ", server_chapterid=" + server_chapterid + ", isOnline=" + isOnline + ", syncStatus=" + syncStatus + ", startTime=" + startTime + ", endTime=" + endTime + "]";
    }


}
